wayland: Fix key repeat
authorMatthias Clasen <mclasen@redhat.com>
Fri, 22 Mar 2013 21:43:50 +0000 (17:43 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 22 Mar 2013 21:43:50 +0000 (17:43 -0400)
Key repeat under X is not affected by modifiers. And on some systems
(e.g my Thinkpad), NumLock is permanently on, rendering key repeat
nonfunctional. This commit changes the Wayland backend to do
key repeat regardless of modifiers.
http://bugzilla.gnome.org/show_bug.cgi?id=695497

gdk/wayland/gdkdevice-wayland.c

index 7bf2e0521f3cd0b9424de26def6f36bcb66980d2..162d4a5e44adf2995bef13e8bb5878728295b62b 100644 (file)
@@ -983,10 +983,6 @@ deliver_key_event(GdkWaylandDeviceData *device,
         }
       return FALSE;
     }
-  else if (device->modifiers)
-    {
-      return FALSE;
-    }
   else switch (device->repeat_count)
     {
     case 1: